<div class="popup_box profil_popup_box">
	<div class="popup_head">
		<div class="popup_title_logo">
			«USER_PROFIL_TITLE»
		</div>
	</div>
	<form id="profil_form" action="javascript:userProfilSave()">
		<div class="popup_feet">
			<div class="popup_feet_buttons form_submit">
				<input id="profil_submit" type="submit" value="«GLOBAL_MODIFY»">
				<input id="profil_submit" type="button" value="«GLOBAL_CANCEL»" onclick="userProfilCancel()">
			</div>
			<div class="HR"></div>
			<div class="popup_feet_status">
				«USER_PROFIL_STATUS»
			</div>
		</div>
		<div class="popup_body">
			<ul id="profil_tabs" class="popup_tabs">
				<li id="profil_tabs_global" tab="global" selected="1">«USER_PROFIL_TABS_GLOBAL»</li>
{if $user->authType == 'tt'}
				<li id="profil_tabs_connection" tab="connection">«USER_PROFIL_TABS_CONNECTION»</li>
{/if}
			</ul>
			<div class="popup_content">
{if $user->authType == 'tt'}
				<div class="profil_body_saisie" id="profil_body_connection" style="visibility:hidden">
{assign var=account_tpl value=$user->authType}
{assign var=account_tpl value=user/profil_account_$account_tpl.tpl}
{include file=$account_tpl}
				</div>
{/if}
				<div class="profil_body_saisie" id="profil_body_global">
					<label for="profil_saisie_name">«USER_PROFIL_NAME» : </label>
					<input type="text" id="profil_saisie_name" name="txt_name" value="{$user->person->name|escape:'html'}"><br>
					
					<label for="profil_saisie_firstname">«USER_PROFIL_FIRSTNAME» : </label>
					<input type="text" id="profil_saisie_firstname" name="txt_firstname" value="{$user->person->firstName|escape:'html'}"><br>
					
					<label for="profil_saisie_email">«USER_PROFIL_EMAIL» : </label>
					<input type="text" id="profil_saisie_email" name="txt_email" class="tooltips_form" value="{$user->person->email|escape:'html'}"><span class="tip">
						<div class="tip_pointer">&nbsp;</div>
						<div class="tip_head">«USER_PROFIL_TIPS_EMAIL_TITLE»</div>
						<div class="tip_body"><table>«USER_PROFIL_TIPS_EMAIL_BODY»</table></div>
					</span>
					<br>
					
					<div class="HR"></div>
					<label for="profil_saisie_language">«USER_LANGUAGE» : </label>
					<input type="hidden" id="profil_saisie_language"  name="txt_language" value="{$user->language|escape:'html'}">
					<ul id="profil_saisie_country">
{foreach from=$languages item=info key=lang}
						<li fc_id="{$lang}" id="profil_saisie_country_{$lang}"><div class="flag tooltips" style="background-image: url('./css/user/img/flag_{$lang}.gif');"><div class="glow"></div><span class="tip">
							<div class="tip_head">{$info.language}</div>
							<div class="tip_body"><nobr>{$info.author}</nobr></div>
						</span></div></li>
{/foreach}
					</ul>
					
					<br>
					
					<div class="HR"></div>
					
					<div id="profil_saisie_color_sample"><div class="avatar_box"><div class="avatar_background" style="background-color:#{$user->avatarColor}"><img src="{if $user->avatar != ''}./extrat/avatar/64/{$user->avatar}.png{else}./css/user/img/noavatar.png{/if}"></div></div></div>
					
					<label for="profil_saisie_color">«USER_PROFIL_AVATAR» : </label>
					<a href="javascript:userProfilPicker()" id="profil_picker" class="tooltips">&nbsp;<span class="tip">
							<div class="tip_head">«USER_PROFIL_TIPS_AVATAR_COLOR_TITLE»</div>
							<div class="tip_body"><table>«USER_PROFIL_TIPS_AVATAR_COLOR_BODY»</table></div>
							<div class="tip_feet tip_help">«TIP_HELP»</div>
						</span></a>
{if $extrat}
					<a href="javascript:userProfilAvatar()" id="profil_avatar" class="tooltips">&nbsp;<span class="tip">
							<div class="tip_head">«USER_PROFIL_TIPS_AVATAR_ICON_TITLE»</div>
							<div class="tip_body"><table>«USER_PROFIL_TIPS_AVATAR_ICON_BODY»</table></div>
							<div class="tip_feet tip_help">«TIP_HELP»</div>
						</span></a>
{/if}
				</div>
			</div>
		</div>
	</form>
</div>